<? include('layer/head.html'); ?>

<body class="ly13 usercenter">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
	<div class="contenter clrfix">
    	<div class="aside_left">
        	<? include('layer/usercentermenu.html'); ?>
        </div>
    	<div class="article">
            <div class="box_border">
            	<div class="wrap section">
                    <div class="hd">我收到的礼物</div>
                    <?php if($userreceive){?>
                    <table class="bd">
                        <tr>
                            <th width="260">&nbsp; &nbsp; &nbsp; &nbsp; 赠送人</th>
                            <th width="260">&nbsp; &nbsp; &nbsp; 礼物</th>
                            <th width="150">数量</th>
                            <th>&nbsp; &nbsp; &nbsp; &nbsp; 时间</th>
                        </tr>
                        <?php foreach($userreceive as $key=>$val){?>
                        <tr>
                            <td>&nbsp; &nbsp;<?php echo $val['nickname'];?></td>
                            <td>道具名称 <img class="photo" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>"></td>
                            <td><?php echo $val['num'];?></td>
                            <td><?php echo Date('Y-m-d H:i',$val['addtime']);?></td>
                        </tr>
                        <?php }?>
                    </table>
                    <? include('layer/pagination.html'); ?>
                    <?php }?>
                </div>
            </div>
        </div>
    	
    </div>
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>
